#include "stdafx.h"
#include "WsgiResponse.h"
#include "HttpContext.h"


PyObject* WsgiResponse_start_response(PyObject* self, PyObject* args) {
	UNREFERENCED_PARAMETER(self);

	HttpContext* context = HttpContext::get_Current();
	return context->get_Response()->start_response(args);	
}

PyObject* WsgiResponse_write(PyObject* self, PyObject* args) {
	UNREFERENCED_PARAMETER(self);

	HttpContext* context = HttpContext::get_Current();
	return context->get_Response()->write(args);
}

PyMethodDef WsgiResponseMethods[] = {
	{ "start_response", WsgiResponse_start_response, METH_VARARGS, 0 },
	{ "write", WsgiResponse_write, METH_VARARGS, 0 },
	{ NULL, NULL, 0, 0 }
};